package com.hz.userService.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 班级表
 * @TableName classes
 */
@TableName(value ="classes")
@Data
public class Class implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班级名称
     */
    @TableField(value = "class_name")
    private String className;

    /**
     * 年级 ID，外键关联 `grades` 表主键 id
     */
    @TableField(value = "grade_id")
    private Integer gradeId;

    /**
     * 年级名称
     */
    @TableField(value = "grade_name")
    private String gradeName;

    /**
     * 入学学年
     */
    @TableField(value = "grade_year")
    private String gradeYear;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}